﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logic.Members
{
    public interface IMember
    {
        /// <summary>
        /// 注册帐号
        /// </summary>
        /// <param name="phone">手机号</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        Model.MethodResult Register(string phone, string password);
        /// <summary>
        /// 重设密码
        /// </summary>
        /// <param name="uid">用户ID</param>
        /// <param name="newpassword">新密码</param>
        /// <returns></returns>
        bool ReSetPassWord(string uid, string newpassword);

        /// <summary>
        /// 找回密码
        /// </summary>
        /// <param name="validatecode">验证码</param>
        /// <param name="newpassword">新密码</param>
        /// <returns></returns>
        bool FindPassWord(string validatecode, string newpassword);

        /// <summary>
        /// 根据ID获取用户信息
        /// </summary>
        /// <param name="id">ID值</param>
        /// <returns>Entities.Entitties.Member</returns>
        Entities.Entities.Member GetMemberById(string id);

        /// <summary>
        /// 根据手机号获取用户信息
        /// </summary>
        /// <param name="Phone">手机号</param>
        /// <returns>Entitites.Entities.Member</returns>
        Entities.Entities.Member GetMemberByPhone(string Phone);
    }
}
